package com.anuo.app.common.globalhandle;


public class AppException extends RuntimeException {
    private String appMessage;
    private String errorCode;

    public AppException(String appMessage) {
        this.appMessage = appMessage;
    }

    public AppException(String appMessage, String errorCode) {
        this.appMessage = appMessage;
        this.errorCode = errorCode;
    }

    public AppException(String appMessage, Throwable ex) {
        super(ex);
        this.appMessage = appMessage;
    }

    public AppException(String appMessage, String errorCode, Throwable ex) {
        super(ex);
        this.appMessage = appMessage;
        this.errorCode = errorCode;
    }

    public AppException(Throwable ex) {
        super(ex);
    }

    public String getAppMessage() {
        return appMessage;
    }

    public void setAppMessage(String appMessage) {
        this.appMessage = appMessage;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
